package com.weijianhuawen.wjblog.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2025-04-26 18:16
 */

@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = QQValidator.class)
public @interface QQAccount {
    String message() default "QQ号格式不正确";

    Class<?>[] groups() default {};

    Class<? extends Payload> [] payload() default {};
}
